package com.martys.singleton08;


public class Application {

	//测试这个用枚举实现的懒汉式单例模式
	public static void main(String[] args) {
		Singleton08 instance1 = Singleton08.INSTANCE;
		System.out.println("instance1 hashcode： "+instance1.hashCode());
		Singleton08 instance2= Singleton08.INSTANCE;
		System.out.println("instance2 hashcode： "+instance2.hashCode());
		System.out.println("isEquals? -->" +(instance1==instance2));
	}

}
